package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjFaultAnnex;
import com.zb.vo.FaultAnnexVo;

import java.util.List;

/**
 * <p>
 * 故障附件表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-07-31
 */
public interface ZjFaultAnnexService extends IService<ZjFaultAnnex> {

    /**
     * 保存故障附件
     * @param custAccId 商家ID
     * @param faultId 故障表ID
     * @param annexs 附件路径
     */
    void save(Long custAccId, Long faultId, List<FaultAnnexVo> annexs, List<Long> delAnnexIds);

    /**
     * 根据故障ID查询故障附件
     * @param faultId 故障ID
     * @return
     */
    List<ZjFaultAnnex> getByFaultId(Long faultId);

    /**
     * 根据故障ID删除
     * @param faultIds 故障ID
     */
    void deleteBatchByFaultId(List<Long> faultIds);
}
